#ifndef SEMIPRODUCTDIALOG_H
#define SEMIPRODUCTDIALOG_H

#include <QDialog>
#include <QStringListModel>

namespace Ui {
class SemiProductDialog;
}

class SemiProductDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit SemiProductDialog(QStringListModel *StringModel ,QWidget *parent = 0);
    ~SemiProductDialog();
    
private slots:
    void on_AddHalfProduct_clicked();

    void on_InsertHalfProduct_clicked();

    void on_RemoveHalfProduct_clicked();

    void on_Close_clicked();

    void on_Save_clicked();

    void on_Cancel_clicked();

    void updateModel();

private:
    Ui::SemiProductDialog *ui;
    QStringListModel *model;
    QStringListModel *mainModel;
};

#endif // SEMIPRODUCTDIALOG_H
